package com.dcw.lixb.designmode.mediator;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author lixiaobin
 * @date 2020-07-28 14:51:47
 * @desc 描述信息
 */
public class ChatRoom {
    private static SimpleDateFormat sFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    public static void showMessage(User user, String msg) {
        System.out.println(sFormat.format(new Date())+"["+user.getName()+"] : "+msg);
    }
}
